<template>
  <div class="parent">
    <p>parent</p>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <hr />
    <child name="何紫晴" :age="25" :person="person" @myevent="getValue" />
  </div>
</template>

<script>
import child from './child'
export default {
  components: {
    child
  },
  data () {
    return {
      person: {
        name: '胡歌',
        age: 40
      }
    }
  },
  methods: {
    getValue (val) {
      console.log('parent....', val)
    }
  }
}
</script>

<style lang="less">
.parent {
  width: 800px;
  height: 800px;
  border: 1px solid green;
}
</style>
